import request from '@/utils/request'

// 查询供应商信息列表
export function getList(query) {
  return request({
    url: '/system/faSupplier/pageQueryFaSupplier',
    method: 'get',
    params: query
  })
}

// 新增供应商信息
export function addInfo(data) {
  return request({
    url: '/system/faSupplier/addFaSupplier',
    method: 'post',
    data: data
  })
}

// 修改供应商信息
export function updateInfo(data) {
  return request({
    url: '/system/faSupplier/editFaSupplier',
    method: 'put',
    data: data
  })
}

// 删除供应商信息
export function delInfo(params) {
  return request({
    url: '/system/faSupplier/delFaSupplier',
    method: 'delete',
    params
  })
}

// 查询所有供应商列表
export function getAllFaSupplier(query) {
  return request({
    url: '/system/faSupplier/getAllFaSupplier',
    method: 'get',
    params: query
  })
}